home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- puppetSound("start")
- put EMPTY into field "orderfile"
- put EMPTY into field "masterfield"
- put EMPTY into field "orderfield"
- put EMPTY into field "detail"
- put EMPTY into field "userid"
- put EMPTY into field "distphoneenter"
- if objectp(myFile) then
- set myFile to 0
- end if
- set myFile to new(xtra("fileio"))
- set fileName to getOSDirectory() & "\col93"
- openFile(myFile, fileName, 1)
- if status(myFile) = 0 then
- set theFile to readFile(myFile)
- put theFile into field "distphoneenter"
- closeFile(myFile)
- set myFile to 0
- else
- closeFile(myFile)
- set myFile to 0
- go("license")
- abort()
- end if
- set tester to field "distphoneenter"
- set aa to the number of lines in field "distphonedb"
- repeat with counter = 1 to aa
- if item 1 of line counter of field "distphonedb" = tester then
- put item 2 of line counter of field "distphonedb" & RETURN into field "f_distphone"
- put item 3 of line counter of field "distphonedb" after field "f_distphone"
- put item 2 of line counter of field "distphonedb" into field "distributor"
- set the textFont of field "f_distphone" to "Times New Roman"
- set the textStyle of field "f_distphone" to "bold"
- set the textSize of field "f_distphone" to 12
- set the textSize of line 2 of field "f_distphone" to 18
- set the foreColor of field "f_distphone" to 5
- go("home")
- end if
- end repeat
- end
-